package shejimoshi.simplefactory;
/*
*火车
 */
public class Train extends Traffic {
    private int cc;//车次
    private int js;//节数

    public int getCc() {
        return cc;
    }

    public void setCc(int cc) {
        this.cc = cc;
    }

    public int getJs() {
        return js;
    }

    public void setJs(int js) {
        this.js = js;
    }

    @Override
    public void transform() {
        System.out.println("火车运输，功率："+getGl()+",载重"+getZz());//调用功率，载重
    }
}
